package com.yzt.zhuju.network.entity.mine;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author : bob
 * date   : 2023/1/16
 * desc   : 用户等级 魅力 财富
 */
public class UserLevelBean implements Parcelable {

    private String title;

    private String content;

    private List<UserLevelChildBean> list;

    public UserLevelBean() {

    }

    protected UserLevelBean(Parcel in) {
        title = in.readString();
        content = in.readString();
        list = in.createTypedArrayList(UserLevelChildBean.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(content);
        dest.writeTypedList(list);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserLevelBean> CREATOR = new Creator<UserLevelBean>() {
        @Override
        public UserLevelBean createFromParcel(Parcel in) {
            return new UserLevelBean(in);
        }

        @Override
        public UserLevelBean[] newArray(int size) {
            return new UserLevelBean[size];
        }
    };

    public List<UserLevelChildBean> getList() {
        return list;
    }

    public void setList(List<UserLevelChildBean> list) {
        this.list = list;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
